import request from '@/utils/request'

//查看车辆类型列表
export function listCarType(data) {
  return request({
    url: '/api/car/selectCarTypeInfo',
    method: 'post',
    data: data
  })
}

//查看车辆类型列表全部
export function listCarTypeAll(data) {
  return request({
    url: '/api/car/selectCartypeName',
    method: 'post',
    data: data
  })
}

//添加车辆类型
export function addCarType(data) {
  return request({
    url: '/api/car/insertCarType',
    method: 'post',
    data: data
  })
}

//修改车辆类型
export function updateCarType(data) {
  return request({
    url: '/api/car/updateCarTypeById',
    method: 'post',
    data: data
  })
}

//删除车辆类型
export  function deleteCarType(data) {
  request({
    url: '/api/car/updateCarTypeStatusById',
    method: 'post',
    data: data
  })
}


//查看车辆规格列表
export function listCarSpecifications(data) {
  return request({
    url: '/api/car/selectCarSpecificationsByCondition',
    method: 'post',
    data: data
  })
}

//查看车辆规格列表
export function listCarSpecificationsAll(data) {
  return request({
    url: '/api/car/selectCarSpecifications',
    method: 'post',
    data: data
  })
}

//添加车辆规格
export function addCarSpecifications(data) {
  return request({
    url: '/api/car/insertCarSpecifications',
    method: 'post',
    data: data
  })
}

//修改车辆规格
export function updateCarSpecifications(data) {
  return request({
    url: '/api/car/updateCarSpecificationsById',
    method: 'post',
    data: data
  })
}

//删除车辆规格
export  function deleteCarSpecifications(data) {
  request({
    url: '/api/car/updateCarSpecificationsStatusById',
    method: 'post',
    data: data
  })
}

//查看车辆认证列表
export function listCarVerify(data) {
  return request({
    url: '/api/car/selectCarOwnerVerifyCondition',
    method: 'post',
    data: data
  })
}

//修改车辆认证
export function updateCarVerify(data) {
  return request({
    url: '/api/car/updateCarOwnerVerifyStatusById',
    method: 'post',
    data: data
  })
}
